package com.xiaoq.matrix.minipro.vo;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xiaoq.coms.util.MapUtil;

@JsonAutoDetect(fieldVisibility = Visibility.NONE, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class MiniProFunctionCategory {
	
	private static final Map<Integer, String> id2NameMap = MapUtil.buildMapKVGen(new Object[][] {
		{1, "消息与菜单权限集"},
		{2, "用户管理权限集"},
		{3, "帐号管理权限集"},
		{4, "网页授权权限集"},
		{5, "微信小店权限集"},
		{6, "多客服权限集"},
		{7, "业务通知权限集"},
		{8, "微信卡券权限集"}
	}, Integer.class, String.class);
	
	@JsonProperty("id")
	private Integer id;
	
	
	
	public Integer getId() {
		return id;
	}



	public void setId(Integer id) {
		this.id = id;
	}



	public static Map<Integer, String> getId2namemap() {
		return id2NameMap;
	}



	public String getName() {
		return id2NameMap.get(this.id);
	}
}
